package com.daniel.gof.builder;

/**
 * 详细说明
 *
 * @author Daniel
 * @version V1.0
 * @date 2020/5/28 17:59
 */
public class Test {
	public static void main(String[] args) {
		Director director = new Director(new MoonComputerBuilder());
		System.out.println(director.build());

		IntelComputerBuilder builder = new IntelComputerBuilder();
		System.out.println(builder
				.addCpu("amd")
				.addMainBoard("intel")
				.addRam("king")
				.getComputer());

		System.out.println(Retrofit
				.builder()
				.setAge(3)
				.setName("daniel")
				.setNickName("wsp")
				.setPassword("123456")
				.build());
	}
}
